<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" buffer="16kb" session="false" autoFlush="true"%>
<%@include file="/WEB-INF/jspf/tags.jspf" %>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <title>新闻搜索-${root.word}-噢啦导航搜索</title>
        <link rel="stylesheet" type="text/css" href="http://cdn.uuola.cn/css/index_so-min.css" charset="utf-8"/>
        <script type="text/javascript" src="${ctxpath}/inc/ctx.jsp"></script>
        <script type="text/javascript" src="http://cdn.uuola.cn/js/txbase.js"></script>
        <script type="text/javascript" src="http://cdn.uuola.cn/index/js/so-min.js"></script>
    </head>
    <body>
        <div id="sitetab">
            <ul class="css-tabs">
                <li><a id="t8" href="#tab8" onclick="ut.gopage('${ctxpath}/?word=${root.word}');">返回噢啦网</a></li>
                <c:if test="${fn:contains(root.site, 'baidu')}">
                    <li><a id="t1" href="#tab1">百度</a></li>
                </c:if>
                <c:if test="${fn:contains(root.site, 'soso')}">
                    <li><a id="t3" href="#tab3">SOSO</a></li>
                </c:if>
                <c:if test="${fn:contains(root.site, 'bing')}">
                    <li><a id="t4" href="#tab4">必应</a></li>
                </c:if>
                <c:if test="${fn:contains(root.site, 'youdao')}">
                    <li><a id="t5" href="#tab5">有道</a></li>
                </c:if>
                <c:if test="${fn:contains(root.site, 'sogou')}">
                    <li><a id="t6" href="#tab6">搜狗</a></li>
                </c:if>
                <c:if test="${fn:contains(root.site, 'jike')}">
                    <li><a id="t7" href="#tab7">即刻</a></li>
                </c:if>
            </ul>
        </div>
        <div id="showiframe" class="css-panes">
            <div></div>
            <c:if test="${fn:contains(root.site, 'baidu')}">
                <div><iframe src="about:blank" width="100%" height="600" id="baidu" allowtransparency="true" frameborder="0" scrolling="auto"></iframe></div>
                </c:if>
                <c:if test="${fn:contains(root.site, 'soso')}">
                <div><iframe src="about:blank" width="100%" height="600" id="soso" allowtransparency="true" frameborder="0" scrolling="auto"></iframe></div>
                </c:if>
                <c:if test="${fn:contains(root.site, 'bing')}">
                <div><iframe src="about:blank" width="100%" height="600" id="bing" allowtransparency="true" frameborder="0" scrolling="auto"></iframe></div>
                </c:if>
                <c:if test="${fn:contains(root.site, 'youdao')}">
                <div><iframe src="about:blank" width="100%" height="600" id="youdao" allowtransparency="true" frameborder="0" scrolling="auto"></iframe></div>
                </c:if>
                <c:if test="${fn:contains(root.site, 'sogou')}">
                <div><iframe src="about:blank" width="100%" height="600" id="sogou" allowtransparency="true" frameborder="0" scrolling="auto"></iframe></div>
                </c:if>
                <c:if test="${fn:contains(root.site, 'jike')}">
                <div><iframe src="about:blank" width="100%" height="600" id="jike" allowtransparency="true" frameborder="0" scrolling="auto"></iframe></div>
                </c:if>

        </div>
        <script type="text/javascript">
            function init(){
                var s= '${root.site}';
                var n=1;
                var gbk_q = '${root.gbk_word}';
                var q = ut.enc('${root.word}');
                for(var k in NewsSite){
                    if(s.indexOf(k)>=0){
                        if(k=='sogou'){
                            new Delay(k,NewsSite[k]+gbk_q,n++).load();
                        }else{
                            new Delay(k,NewsSite[k]+q,n++).load();
                        }
                    }
                }
            };
            $(function() {
                $(".css-tabs:first").tabs(".css-panes:first > div",{initialIndex:1});
                init();
                iframeResize('${root.site}');
            });
        </script>
        <div style="display:none;"><script type="text/javascript" src="http://cdn.uuola.cn/js/trace.js"></script></div>
    </body>
</html>
